import { ref } from "vue";

export default function Pagination() {
  const pageSize = ref(10);
  const currentPage = ref(1);

  const handleSizeChange = (val: number) => {
    pageSize.value = val;
  };
  const handleCurrentChange = (val: number) => {
    currentPage.value = val;
  };
  return {
    pageSize,
    currentPage,
    handleSizeChange,
    handleCurrentChange,
  };
}
